Learning Social Media Analytics with R by Raghav Bali

Learning Social Media Analytics with R by Raghav Bali

Author:Raghav Bali
Language: eng
Format: epub
Publisher: Packt Publishing


The sentimental rankings

In the first use case, we explored the venue data from Foursquare and built some analysis and a proper solution on top of that data. In this section, we will focus on the textual aspect of the Foursquare data. We will extract the tips generated for a venue by users and perform some basic analysis on them. Then we will try to build a use case in which we will use those tips to arrive at a decision.

Extracting tips data – the go to step

By now we know the analysis work flow off by heart and as always the first step is getting to the required data. We have already detailed the steps involved in data extraction with Foursquare APIs. So instead of restating the obvious, we will start with the process of data extraction.

We have written two utility functions for the extraction of tips data from the identified end point:

extract_all_tips_by_venue: This function takes the ID of the venue as an argument and extracts the JSON object containing all the tips for that venue

extract_tips_from_json: This function will extract the tweets from the JSON object generated in the previous step



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.